import request from '@/utils/request'

// 订单数据获取
export function getList(params) {
    return request({
        url:'/order/order/page',
        method:'get',
        params,
        headers:{
            'authorization':localStorage.getItem('token')
        }
    })
}
// 
// 获取订单详情
export function details(eve,params) {
    return request({
        url:'/order/order/orderInfo/'+eve,
        method:'get',
        params,
        headers:{
            'authorization':localStorage.getItem('token')
        }
    })
}
// 表格导出
export function exportExcel(params) {
    return request({
        url:'/order/order/waitingConsignmentExcel',
        method:'get',
        params,
        headers:{
            'authorization':localStorage.getItem('token')
        },
        responseType: 'blob'
    })
}
// 销售记录导出
export function exportExceloder(params) {
    return request({
        url:'/order/order/soldExcel',
        method:'get',
        params,
        headers:{
            'authorization':localStorage.getItem('token')
        },
        responseType: 'blob'
    })
    
}
// 获取快递运营商
export function getExpress(params) {
    return request({
        url:'/admin/delivery/list',
        method:'get',
        params,
        headers:{
            'authorization':localStorage.getItem('token')
        }
    })
}
// 发货
export function sendGoods(data) {
    return request({
        url:'/order/order/delivery',
        method:'put',
        data,
        headers:{
            'authorization':localStorage.getItem('token')
        }
    })
}